package com.qiyu.tech.pay.queue.model;

import java.io.Serializable;

/**
 * 延迟任务信息
 *
 * @Author idea
 * @Date created in 8:41 上午 2021/4/1
 */
public class DelayTaskInfo implements Serializable {

    private static final long serialVersionUID = -1003963035927679825L;

    /**
     * 唯一标识
     */
    private long taskId;

    /**
     * 支付配置id
     */
    private int payConfigId;

    /**
     * 任务类型
     */
    private String topic;

    /**
     * 任务执行时间
     */
    private Long executeTime;

    /**
     * 任务执行的超时时长限制
     */
    private Long executeTimeout;

    /**
     * 任务的重试次数
     */
    private int retryTimes;

    /**
     * 任务的消息内容
     */
    private String message;

    public long getTaskId() {
        return taskId;
    }

    public void setTaskId(long taskId) {
        this.taskId = taskId;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Long getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(Long executeTime) {
        this.executeTime = executeTime;
    }

    public Long getExecuteTimeout() {
        return executeTimeout;
    }

    public void setExecuteTimeout(Long executeTimeout) {
        this.executeTimeout = executeTimeout;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(int retryTimes) {
        this.retryTimes = retryTimes;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getPayConfigId() {
        return payConfigId;
    }

    public void setPayConfigId(int payConfigId) {
        this.payConfigId = payConfigId;
    }

    @Override
    public String toString() {
        return "DelayTaskInfo{" +
                "taskId=" + taskId +
                ", topic='" + topic + '\'' +
                ", executeTime=" + executeTime +
                ", executeTimeout=" + executeTimeout +
                ", retryTimes=" + retryTimes +
                ", message='" + message + '\'' +
                ", payConfigId=" + payConfigId +
                '}';
    }
}
